package com.domain.oa.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("角色菜单关联表")
@TableName("role_link_menu")
public class RoleMenu implements Serializable {
    @ApiModelProperty("关联id")
    @TableId(type = IdType.AUTO)
    private Integer id;
    @ApiModelProperty("菜单id")
    @TableField("m_id")
    private Integer mId;
    @ApiModelProperty("角色id")
    @TableField("r_id")
    private Integer rId;
}
